package com.jianzhi.lib.log

import com.blankj.utilcode.util.ServiceUtils
import com.jianzhi.lib.log.service.UploadService

object JZLog {

    private var callback: ParamsCallback? = null

    private var debug: Boolean = false

    fun init(callback: ParamsCallback): JZLog {
        JZLog.callback = callback
        return this
    }

    fun setDebug(debug: Boolean): JZLog {
        JZLog.debug = debug
        return this
    }


    fun insertLog(content: String) {
        if (!ServiceUtils.isServiceRunning(UploadService::class.java)) {
            ServiceUtils.startService(UploadService::class.java)
        }
    }

    interface ParamsCallback {

    }
}